package com.google.gwt.sample.contacts.server;

import com.google.gwt.sample.contacts.client.action.GetContactDetailsAction;
import com.google.gwt.sample.contacts.client.action.GetContactDetailsResponse;

import com.guit.client.command.action.CommandException;

public class GetContactDetailsHandler extends AbstractHandler<GetContactDetailsAction, GetContactDetailsResponse> {

    @Override
    public GetContactDetailsResponse handle(GetContactDetailsAction action) throws CommandException {
        return new GetContactDetailsResponse(dataUtil.getContactDetails());
    }
}
